//请求方式和参数
import request from "@/api/https.js"
export const homeApi = {
	//登录这一坨
	getEnterprisesList: (params = {}) => {
		return request.request({ // 获取手机号绑定的企业列表
			url: "/member/enterprises",
			method: "GET",
			data: params
		})
	},
	sendCode: (params = {}) => { //发送短信验证码
		return request.request({
			url: "/member/sms/code",
			method: "GET",
			data: params
		})
	},
	getImgCode: (params = {}) => { //获取图片验证码
		return request.request({
			url: "/member/image/code",
			method: "GET",
			data: params
		})
	},
	login: (params = {}) => { //登录
		return request.request({
			url: "/new_login",
			method: "post",
			data: params
		})
	},
	backgroundSetting: (params = {}) => { //通用配置接口
		return request.request({
			url: "/h5app/general_setting",
			method: "GET",
			data: params
		})
	},
}